package com.aop.test;

public class AopUnderstand {
	public static void main(String[] args) {
		try {
			try {
				System.out.println("执行 before 通知");
				System.out.println("执行 targetMethod 方法");
			} finally {
				System.out.println("执行 after 通知");
			}
			System.out.println("执行 returning 通知");
		} catch (Exception e) {
			System.out.println("执行 throwing 通知");
		}

		try {
			try {
				System.out.println("执行 before 通知");
				System.out.println("执行 targetMethod 方法");
				System.out.println("执行 returning 通知");
			} catch (Exception e) {
				System.out.println("执行 throwing 通知");
			}
		} finally {
			System.out.println("执行 after 通知");
		}
	}
}
